<template>
    <div class="header">
      <div class="header-left">
        <span class="iconfont back-icon">&#xe6c3;</span>
      </div>
      <div class="header-input">
        <span class="iconfont">&#xe6bc;</span>
          搜索景点/城市
      </div>
        <router-link to="/city">
            <div class="header-right">{{this.$store.state.city}}
                <span class="iconfont arrow-icon">&#xe600;</span>
            </div>
        </router-link>
    </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
      city: Array,
  }
}
</script>
<style lang="stylus" scoped>
  @import "~@/assets/Styles/varibles.styl"
  .header
    display :flex
    line-height :$headerHeight
    background :$bgColor
    color :#ffffff
  .header-left
    height :.64rem
    float :left
    .back-icon
      text-align :center
      font-size :.4rem
  .header-input
    flex :1
    padding-left :.2rem
    height :.64rem
    line-height :.64rem
    margin-left :.2rem
    margin-top :.12rem
    color :#ccc
    background :#ffffff
    border-radius :.1rem
    touch-action :none
  .header-right
    float :righ
    padding : 0 .1rem
    text-align :center
  .arrow-icon
   font-size :.24rem
   margin-left :-.04rem
</style>
